package cn.yangtianxia.user.mapper;

import cn.yangtianxia.user.domain.Logininfo;
import cn.yangtianxia.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yangtianxia
 * @since 2022-04-01
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    Logininfo loadUsernameAndType(@Param("username") String username, @Param("type") String type);

    Logininfo loadByUserId(Long userId);
}
